{% extends "admin/base_site.html" %}

{% block title %}系统日志 | {{ sitesettings.title }}后台 {% endblock %}

{% block content_title %}{% endblock %}

{% block content %}
    <div style="font-size: 14px;margin-bottom: 10px;float: left;width: 100%;
    line-height:40px;border-bottom: 1px dashed #ccc;">
        <span style="font-weight: 700;font-size: 16px;">日志: {{ log_name }}</span>

        <div class="result-list-container" style="float: right">
            <div style="float: left;">
                查看其它日志:
            </div>
            <div class="changelist-actions actions" style="float: right;padding: 4px 10px 0 12px;">
                <label>
                    <select name="action" style="display: none;">
                        <option value="" selected="selected">---------</option>
                        {% for a_log in all_logs %}
                            <option value="{{ a_log }}">{{ a_log }}</option>
                        {% endfor %}
                    </select>
                </label>
                <script type="text/javascript">
                    jQuery(function ($) {
                        $(".actions select").change(function () {
                            location = "/core/wllog/" + $(this).val() + "/800/";
                        });
                        $('#side-panel .dropdown-menu-menu a[href="/core/wllog/uwsgi.log/800/"]').addClass('selected');
                    });
                </script>
            </div>
        </div>
    </div>

    <div style="font-size: 14px;color: #999;margin-bottom: 10px;">只提供最新的800行记录，如需查阅全部日志，请直接下载log文件</div>
    <div id="content-main" style="font-size:13px;line-height:18px">
        {% for line in lines %}
            <div>{{ line }}</div>
        {% endfor %}
    </div>
{% endblock %}
